package com.amos.mqserver.pojo;

/**
 * RabbitMQ 常量
 * @author zhuqb
 */
public interface Constants {

    /**
     * 未确认confirm
     */
    String MESSAGE_UN_RECEIVE_CONFIRM = "message_un_receive_confirm";

    /**
     * 发送失败，补偿中
     */
    String MESSAGE_SEND_FAIL_COMPENSATE = "message_send_fail_compensate";

    /**
     * 补偿失败
     */
    String MESSAGE_COMPENSATE_FAIL = "message_compensate_fail";

    /**
     * 发送成功，确认confirm
     */
    String MESSAGE_SEND_SUCCESS = "message_send_success";

    /**
     * 发送错误，例如交换机名称错误、路由键名称错误
     */
    String MESSAGE_SEND_ERROR = "message_send_error";

    /**
     * 最大补偿次数
     */
    Integer MAX_COMPENSATE_NUM = 3;

    /**
     * 定时扫描表周期，暂定10s
     */
    Integer SCHEDULE_CYCLE = 10000;

    /**
     * 未confirm超时时间
     */
    long CONFIRM_TIME_OUT = 10000;
}
